Hide backup and scan activities from sites without backup access - #23218
Conversation
…ccess
WordPress.com backs up Simple sites internally and writes those events to
the activity log regardless of plan, so the activity endpoint returns
backup ("rewind") and scan activities even for sites whose plan does not
include those products. The web Activity Log excludes them by sending
not_group[]=rewind¬_group[]=scan when the site lacks the
backups-self-serve feature, but the apps never did, causing the mobile
Activity Log to show "Backup and scan complete" entries that the web
hides.
This mirrors the web behavior (getActivityLogHiddenGroups in wp-calypso):
a new GetActivityLogHiddenGroupsUseCase decides which groups to hide
based on the backups-self-serve plan feature, falling back to purchased
Jetpack backup/scan products for self-hosted sites, and the activity log
fetch passes them through a new notGroups field on FetchActivityLogPayload
so the server filters them out. The activity type filter picker removes
the hidden groups from its list so they cannot be selected, and the
Backup screen keeps showing rewind events since that is its purpose.
|
|
|
|
🤖 Build Failure AnalysisThis build has failures. Claude has analyzed them - check the build annotations for details. |
|
@crazytonyli Overall this looks good, but Claude found a few issues, and checks are failing. |
|
@nbradbury Are the two medium issues acceptable or blockers, in the context of this codebase? The first issue about standalone Jetpack Backup plugin sounds like an existing issue. I'm not sure how much real impact the second issue (querying from the main thread) has. |
I don't consider either blockers, but the CI failure is a blocker. |
|
@crazytonyli I'll go ahead and approve this so you can merge it once the CI issue is resolved. |
|
@nbradbury Thanks for the review! |
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## trunk #23218 +/- ##
=======================================
Coverage 37.91% 37.92%
=======================================
Files 2333 2334 +1
Lines 126964 126984 +20
Branches 17583 17589 +6
=======================================
+ Hits 48144 48162 +18
Misses 74888 74888
- Partials 3932 3934 +2 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|


Replicate wordpress-mobile/WordPress-iOS#25894